package cn.zc.web.video.api;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.IOException;

/**
 * 查询websocket信息
 */

@RestController
public class BoardController {

    /**
     * 获取当前人数
     * @param name
     * @return
     */
    @GetMapping("/listUser")
    public Integer findListUser(String name) {
        return WebSocketController.userSum;
    }
}
